import threading

from common.common_text import threaded_progress_bar

print("多个线程进度条开始")

# 创建线程
thread1 = threading.Thread(target=lambda: threaded_progress_bar(100, 0.05))
thread2 = threading.Thread(target=lambda: threaded_progress_bar(100, 0.01))

# 启动线程
print("线程1开始运行")
thread1.start()
print("线程2开始运行")
thread2.start()

# 等待所有线程完成
print("线程1运行结束")
thread1.join()
print("线程2运行结束")
thread2.join()

print("多个线程进度条结束")
